package Lambda;

public class LambdaDemo3 {

    public static void main(String[] args) {
        Shop shop=new Shop();
        new Thread(shop::buy).start();
        new Thread(Shop::doSome).start();

    }
}
class Shop{
    public static void doSome(){
        System.out.println("买买买");
    }
    public void buy(){
        System.out.println("买买买");
    }
}
